package com.eight.cloud.job.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.eight.cloud.mybatisplus.entity.TenantDataScopeEntity;
import com.eight.cloud.mybatisplus.entity.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 作业执行信息
 *
 * @ClassName: ExecutionJobEntity
 * @Author: TXC
 * @Date: 2025-02-25 09:59
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_quartz_execution_job")
public class ExecutionJobEntity extends TenantDataScopeEntity<ExecutionJobEntity> {
    /**
     * 作业信息id
     */
    private String quartzJobId;
    /**
     * 执行表达式
     */
    private String cronExpression;

    /**
     * cron计划策略 0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行
     */
    private Integer misfirePolicy = 0;

    /**
     * 并发执行 0=允许,1=禁止
     */
    private Integer concurrent;
}
